package com.xy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.entity.LoanPeriod;
import com.xy.mapper.LoanPeriodMapper;
import com.xy.service.LoanPeriodService;

@Service(value = "LoanPeriodService")
public class LoanPeriodServiceImpl implements LoanPeriodService {
	@Autowired
	private LoanPeriodMapper loanPeriodMapper;

	@Override
	public boolean addLoanPeriod(LoanPeriod loanPeriod) {
		return loanPeriodMapper.addLoanPeriod(loanPeriod);
	}

	@Override
	public boolean deleLoanPeriod(LoanPeriod loanPeriod) {
		return loanPeriodMapper.deleLoanPeriod(loanPeriod);
	}

	@Override
	public boolean updateLoanPeriod(LoanPeriod loanPeriod) {
		return loanPeriodMapper.updateLoanPeriod(loanPeriod);
	}

	@Override
	public List<LoanPeriod> selectLoanPeriod(LoanPeriod loanPeriod) {
		return loanPeriodMapper.selectLoanPeriod(loanPeriod);
	}

}
